 
import system.staros.cblock1.*;
import sys.boot.*;
import java.io.*;

 /**
  * System start entry is going here.
  * The main() method creates an instance of Core class
  * and passes an execution to the Core.
  */
 
 public class start {
 	
 	private static Core core = new Core();
 	
 	public static void main ( String args[] ) {
	if (!new File("system/data/staros/update/cache/latest.pkg").exists()){
	core.start();
	} else {
	System.out.println("Found install package. Booting into Installer...");
	System.out.println("---------------------");
	BootLoader.bootInstaller("system/data/staros/update/cache/latest.pkg");
	new File("system/data/staros/update/cache/latest.pkg").delete();
	System.out.println("Done!");
	System.out.println("Booting into normal mode...");
	core.start();
	}	
 	}
	
	
 }